#include <iostream>
#include <cstdio>
using namespace std;
int key[]={1,2,3,1,2,3,1,2,3,1,2,3,1,2,3,1,2,3,4,1,2,3,1,2,3,4};
int main(){
	char str[205]={0};
	int sum=0;
	gets(str);
	for(int i=0;str[i]!=0;i++){
		if(str[i]==' '){
			sum++;
		}else if(str[i]>='a'&&str[i]<='z'){
			sum+=key[str[i]-'a'];
		}
		
	}
	cout<<sum;
	return 0;
}
